# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=mkcert
pkgver=1.4.3
pkgrel=4
pkgdesc="simple zero-config tool to make locally trusted development certificates with any names you'd like"
url="https://mkcert.dev/"
arch="all"
license="BSD-3-Clause"
makedepends="go nss-tools"
options="chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/FiloSottile/mkcert/archive/refs/tags/v$pkgver.tar.gz"

build() {
	go generate
	go build -ldflags "-X main.Version=$pkgver" -v
}

check() {
	go test ./...
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
d21269253fbcd96b7fd5afe5469123becbd1d280428272292de052b4772f4017af373289f5cb66179b7689368d1c262f4253dba04e0faa2f18824aa34607f250  mkcert-1.4.3.tar.gz
"
